package com.its.common.net.core.config;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author xiaxp
 * @Date 8/24/22 17:37
 * @Description
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class NetHandlerThreadPoolConfig {
    /** 核心线程大小 */
    @Builder.Default
    private int coolPoolSize = 16;

    /** 最大线程大小 */
    @Builder.Default
    private int maxPoolSize = 64;

    /** 线程空闲时的存活时间，单位秒*/
    @Builder.Default
    private long idleTime = 5;

    /** 阻塞队列大小，默认1024 * 1024*/
    @Builder.Default
    private int queueCap = 1048576;
}
